cover your bases

Translations
prendre toutes les précautions
Definitions
To take precautions or make preparations to ensure that all possible problems or situations are accounted for; to be thorough and careful in planning or action.